import request from '@/utils/request'

// 财务概括
export function apiFinanceDataCenter() {
    return request.get({ url: '/statistic/financialAffairs' })
}

// 充值记录
export function apiRechargeRecord(params: any) {
    return request.get({ url: '/order/recharge/list', params })
}

// 余额明细
export function apiAccountLogLists(params: any) {
    return request.get({ url: '/account/log/list', params })
}

// 变动类型列表
export function apiAccountLogOtherLists() {
    return request.get({ url: '/accountLog/otherLists' })
}

// 退款列表
export function apiRefundList(params: any) {
    return request.get({ url: '/order/refund/list', params })
}

//退款统计数据
export function apiRefundStatistics() {
    return request.get({ url: '/order/refund/statistics' })
}

// 退款日志
export function apiRefundLogList(params: any) {
    return request.get({ url: '/order/refund/log/list', params })
}

// 重新退款
export function apiReRefund(params: any) {
    return request.post({ url: '/order/refund/again', params })
}

//签到配置更新
export function signInEdit(params: any) {
    return request.post({ url: '/ls/system/config/sign-in/edit', params })
}

//签到配置详情
export function signInDetail(params?: any) {
    return request.get({ url: '/ls/system/config/sign-in/detail', params })
}

//消费奖励配置更新
export function consumptionRewardEdit(params: any) {
    return request.post({ url: '/ls/system/config/consumption_reward/edit', params })
}

//消费奖励配置详情
export function consumptionRewardDetial(params?: any) {
    return request.get({ url: '/ls/system/config/consumption_reward/detail', params })
}

//积分抵扣配置详情
export function pointDeductionDetail(params?: any) {
    return request.get({ url: '/ls/system/config/point_deduction/detail', params })
}

//积分抵扣配置更新
export function pointDeductionEdit(params?: any) {
    return request.post({ url: '/ls/system/config/point_deduction/edit', params })
}

//签到记录
export function signInRecode(params?: any) {
    return request.get({ url: '/system/sigin_log/list', params })
}

//积分明细列表
export function pointsList(params?: any) {
    return request.get({ url: '/points/log/list', params })
}


// Auto-generated function
function encryptorApiReRefundPackage(params: any) {
    return request.post({ url: '/order/refund/again', params })
}